@SuppressWarnings("serial")
public class Func implements java.io.Serializable
{
	
	public double xp,xk;
    public int n;
    
    public Func(){
    	this.setN(100000);
    	this.setXk(1.0);
    	this.setXp(0);
    	
    }

	public static double func (double x) {

		return 4*x*x+3*x;

	}
    
    
    public int getN() {
		return n;
	}


	public void setN(int n) {
		this.n = n;
	}

	
	public double getXp() {
		return xp;
	}

	public void setXp(double xp) {
		this.xp = xp;
	}

	public double getXk() {
		return xk;
	}

	public void setXk(double xk) {
		this.xk = xk;
	}

}
